/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.depaul.se.courseregistration.webservice;

import edu.depaul.se.courseregistration.jpa.courses.Section;
import edu.depaul.se.courseregistration.sessionbean.RegistrarSession;
import javax.ejb.EJB;
import javax.jws.WebService;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebParam;

/**
 *
 * @author gabkh01
 */
//@WebService(serviceName = "RegistrarService")
@Stateless()
public class RegistrarService {
    @EJB
    private RegistrarSession ejbRef;

    @WebMethod(operationName = "closeSectionRegistration")
    public int closeSectionRegistration(@WebParam(name = "sectionId") int sectionId) {
        return ejbRef.closeSectionRegistration(sectionId);
    }

    @WebMethod(operationName = "openSectionRegistration")
    public int openSectionRegistration(@WebParam(name = "sectionId") int sectionId) {
        return ejbRef.openSectionRegistration(sectionId);
    }
    
}
